package com.djdg.foodies.common.repository;

import com.djdg.foodies.common.entity.Test;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Description:
 * @Auther Demon
 * @Date 2018/3/13 15:25 星期二
 */
public interface TestRepository extends JpaRepository<Test, Long> {

    Test findByName(String name);

    Page<Test> findByAge(Integer age, Pageable pageable);

}
